home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 12511500 / var1432.dms / var1432.adf / NDUK-V40.lha / V40 / include / datatypes / pictureclass.i < prev    next >
Text File  |  1993-10-15  |  4KB  |  138 lines

  1.     IFND DATATYPES_PICTURECLASS_I
  2. DATATYPES_PICTURECLASS_I    SET    1
  3. **
  4. **  $VER: pictureclass.i 39.2 (28.4.93)
  5. **  Includes Release 40.15
  6. **
  7. **  Interface definitions for DataType picture objects.
  8. **
  9. **  (C) Copyright 1992-1993 Commodore-Amiga, Inc.
  10. **    All Rights Reserved
  11. **
  12.  
  13.     IFND UTILITY_TAGITEM_I
  14.     INCLUDE 'utility/tagitem.i'
  15.     ENDC
  16.  
  17.     IFND DATATYPES_DATATYPESCLASS_I
  18.     INCLUDE 'datatypes/datatypesclass.i'
  19.     ENDC
  20.  
  21.     IFND LIBRARIES_IFFPARSE_I
  22.     INCLUDE 'libraries/iffparse.i'
  23.     ENDC
  24.  
  25. ;------------------------------------------------------------------------------
  26.  
  27. PICTUREDTCLASS    MACRO
  28.     dc.b    "picture.datatype"
  29.     ENDM
  30.  
  31. ;------------------------------------------------------------------------------
  32.  
  33. ; Picture attributes
  34. PDTA_ModeID        equ    (DTA_Dummy+200)
  35.     ; Mode ID of the picture
  36.  
  37. PDTA_BitMapHeader    equ    (DTA_Dummy+201)
  38.  
  39. PDTA_BitMap        equ    (DTA_Dummy+202)
  40.     ; Pointer to a class-allocated bitmap, that will end
  41.     ; up being freed by picture.class when DisposeDTObject()
  42.     ; is called
  43.  
  44. PDTA_ColorRegisters    equ    (DTA_Dummy+203)
  45. PDTA_CRegs        equ    (DTA_Dummy+204)
  46. PDTA_GRegs        equ    (DTA_Dummy+205)
  47. PDTA_ColorTable        equ    (DTA_Dummy+206)
  48. PDTA_ColorTable2    equ    (DTA_Dummy+207)
  49. PDTA_Allocated        equ    (DTA_Dummy+208)
  50. PDTA_NumColors        equ    (DTA_Dummy+209)
  51. PDTA_NumAlloc        equ    (DTA_Dummy+210)
  52.  
  53. PDTA_Remap        equ    (DTA_Dummy+211)
  54.     ; Boolean : Remap picture (defaults to TRUE)
  55.  
  56. PDTA_Screen        equ    (DTA_Dummy+212)
  57.     ; Screen to remap to
  58.  
  59. PDTA_FreeSourceBitMap    equ    (DTA_Dummy+213)
  60.     ; Boolean : Free the source bitmap after remapping
  61.  
  62. PDTA_Grab        equ    (DTA_Dummy+214)
  63.     ; Pointer to a Point structure
  64.  
  65. PDTA_DestBitMap        equ    (DTA_Dummy+215)
  66.     ; Pointer to the destination (remapped) bitmap
  67.  
  68. PDTA_ClassBitMap    equ    (DTA_Dummy+216)
  69.     ; Pointer to class-allocated bitmap, that will end
  70.     ; up being freed by the class after DisposeDTObject()
  71.     ; is called
  72.  
  73. PDTA_NumSparse        equ    (DTA_Dummy+217)
  74.     ; (UWORD) Number of colors used for sparse remapping
  75.  
  76. PDTA_SparseTable    equ    (DTA_Dummy+218)
  77.     ; (UBYTE *) Pointer to a table of pen numbers indicating
  78.     ; which colors should be used when remapping the image.
  79.     ; This array must contain as many entries as there
  80.     ; are colors specified with PDTA_NumSparse
  81.  
  82. ;------------------------------------------------------------------------------
  83.  
  84. ; Masking techniques
  85. mskNone            equ    0
  86. mskHasMask        equ    1
  87. mskHasTransparentColor    equ    2
  88. mskLasso        equ    3
  89. mskHasAlpha        equ    4
  90.  
  91. ; Compression techniques
  92. cmpNone            equ    0
  93. cmpByteRun1        equ    1
  94. cmpByteRun2        equ    2
  95.  
  96. ; Bitmap header (BMHD) structure
  97.     STRUCTURE BitMapHeader,0
  98.     UWORD     bmh_Width;        ; Width in pixels
  99.     UWORD     bmh_Height        ; Height in pixels
  100.     WORD     bmh_Left        ; Left position
  101.     WORD     bmh_Top        ; Top position
  102.     UBYTE     bmh_Depth        ; Number of planes
  103.     UBYTE     bmh_Masking        ; Masking type
  104.     UBYTE     bmh_Compression    ; Compression type
  105.     UBYTE     bmh_Pad
  106.     UWORD     bmh_Transparent    ; Transparent color
  107.     UBYTE     bmh_XAspect
  108.     UBYTE     bmh_YAspect
  109.     WORD     bmh_PageWidth
  110.     WORD     bmh_PageHeight
  111.     LABEL BitMapHeader_SIZEOF
  112.  
  113. ;------------------------------------------------------------------------------
  114.  
  115. ;  Color register structure
  116.     STRUCTURE ColorRegister,0
  117.     UBYTE    red
  118.     UBYTE    green
  119.     UBYTE    blue
  120.     LABEL ColorRegister_SIZEOF
  121.  
  122. ;------------------------------------------------------------------------------
  123.  
  124. ; IFF types that may be in pictures
  125. ID_ILBM        equ    'ILBM'
  126. ID_BMHD        equ    'BMHD'
  127. ID_BODY        equ    'BODY'
  128. ID_CMAP        equ    'CMAP'
  129. ID_CRNG        equ    'CRNG'
  130. ID_GRAB        equ    'GRAB'
  131. ID_SPRT        equ    'SPRT'
  132. ID_DEST        equ    'DEST'
  133. ID_CAMG        equ    'CAMG'
  134.  
  135. ;------------------------------------------------------------------------------
  136.  
  137.     ENDC    ; DATATYPES_PICTURECLASS_I
  138.